<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\ApiController;
use App\Libraries\Error;
use Illuminate\Support\Facades\Storage;

class ImageController extends ApiController
{
    public function imagetoken()
    {
        $disk = Storage::disk('qiniu');
        $token = $disk->getUploadToken();

        return showError(Error::ERR_OK,['uptoken'=>$token]);
    }

}
